package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TicketMapper;
import com.ruoyi.system.domain.Ticket;
import com.ruoyi.system.service.ITicketService;

/**
 * 门票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
@Service
public class TicketServiceImpl implements ITicketService 
{
    @Autowired
    private TicketMapper ticketMapper;

    /**
     * 查询门票信息
     * 
     * @param id 门票信息主键
     * @return 门票信息
     */
    @Override
    public Ticket selectTicketById(String id)
    {
        return ticketMapper.selectTicketById(id);
    }


    @Override
    public List<Ticket> selectTicketList(Ticket ticket)
    {
        return ticketMapper.selectTicketList(ticket);
    }

    /**
     * 新增门票信息
     * 
     * @param ticket 门票信息
     * @return 结果
     */
    @Override
    public int insertTicket(Ticket ticket)
    {
        return ticketMapper.insertTicket(ticket);
    }

    /**
     * 修改门票信息
     * 
     * @param ticket 门票信息
     * @return 结果
     */
    @Override
    public int updateTicket(Ticket ticket)
    {
        return ticketMapper.updateTicket(ticket);
    }

    /**
     * 批量删除门票信息
     * 
     * @param ids 需要删除的门票信息主键
     * @return 结果
     */
    @Override
    public int deleteTicketByIds(String[] ids)
    {
        return ticketMapper.deleteTicketByIds(ids);
    }

    /**
     * 删除门票信息信息
     * 
     * @param id 门票信息主键
     * @return 结果
     */
    @Override
    public int deleteTicketById(String id)
    {
        return ticketMapper.deleteTicketById(id);
    }
}
